// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

@use '../../../m24/vars/lib' as *;

.m24-c-ar-article-related-back-link {
    margin-bottom: $spacer-md;
}

.m24-c-ar-article-related-back-link a {
    padding-left: 24px;
    position: relative;
    font-size: $text-body-md;

    &::before {
        background-image: url('/media/protocol/img/icons/arrow-left.svg');
        background-position: center left;
        background-repeat: no-repeat;
        background-size: 16px auto;
        bottom: 0;
        content: '';
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        transition-duration: $fast;
        transition-property: right;
        transition-timing-function: $bezier;
        width: 24px;
    }
}

.m24-c-ar-article-related-title {
    font-size: $text-title-lg;
}

@media #{$mq-lg} {
    .m24-c-ar-article-related {
        @include grid;

        .m24-c-ar-article-related-back-link {
            grid-column: 2/6;
        }

        .m24-c-ar-article-related-articles {
            grid-column: 6/12;
        }
    }
}
